import request from "@/request/";
// 成品发货单
export const getList = (data) => {
  return request({
    url: "/api/mes-warehouse-service/product-shipment/page",
    method: "POST",
    data,
  });
};

export const getByCustomerAndState = (data) => {
  return request({
    url: "/api/mes-warehouse-service/sales-order/getByCustomerAndState",
    method: "POST",
    data,
  });
};

export const save = (data) => {
  return request({
    url: "/api/mes-warehouse-service/product-shipment/save",
    method: "POST",
    data,
  });
};

export const getDetail = (data) => {
  return request({
    url: "/api/mes-warehouse-service/product-shipment/pc/detail",
    method: "POST",
    data,
  });
};

export const update = (data) => {
  return request({
    url: "/api/mes-warehouse-service/product-shipment/update",
    method: "POST",
    data,
  });
};

export const getBarcode = (data) => {
  return request({
    url: "/api/mes-warehouse-service/product-shipment/queryBarcode",
    method: "POST",
    data,
  });
};

export const deleteAxios = (data) => {
  return request({
    url: "/api/mes-warehouse-service/product-shipment/delete",
    method: "POST",
    data,
  });
};
export const getPrintData = (data) => {
  return request({
    url: "/api/mes-warehouse-service/product-shipment/batchPrinting",
    method: "POST",
    data,
  });
};

export const delShipmentDetail = (data) => {
  return request({
    url: "/api/mes-warehouse-service/product-shipment/deleteProductShipmentBizDetail",
    method: "POST",
    data,
  });
};

export const getWarehouseList = (data) => {
  return request({
    url: "/api/mes-warehouse-service/misc-out-bill/detail/material-inv",
    method: "POST",
    data,
  });
};
